<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <title>红安红萌宝大赛</title>
    <meta name="description" content="红安人微信公众平台">
    <link rel="stylesheet" href="${CONTEXT_PATH}/vote/css/touch.css">
    <script src="${CONTEXT_PATH}/vote/js/jquery-2.1.3.min.js" type="text/javascript"></script>
    <script src="${CONTEXT_PATH}/zb/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript"><#include "/vote/wxjs.html" encoding="utf-8"/></script>
    <script src="${CONTEXT_PATH}/vote/js/app.js" type="text/javascript"></script>
    <script src="${CONTEXT_PATH}/vote/js/jquery.masonry.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css"
          href="${CONTEXT_PATH}/vote/css/daohang.css">
    <style>
        .slider {
            display: none;
        }

        .focus span {
            width: 5px;
            height: 5px;
            margin-left: 5px;
            border-radius: 50%;
            background: #CDCDCD;
            font-size: 0
        }

        .focus span.current {
            background: red;
        }
    </style>

</head>
<body>
<header>
    <div class="m_head clearfix">
        <img src="${CONTEXT_PATH}/vote/img/mbds02.jpg"/>
        <img src="http://bbs.0713hah.com/cdn/img/mbds03.jpg"/>
        <img src="http://bbs.0713hah.com/cdn/img/mbds04.jpg"/>
        <div class="num_box">
            <a href="http://form.mikecrm.com/RfX9KC" class="join_us">我要报名</a>

            <ul class="num_box_ul">
                <li>
                    <span class="text">已报名</span>
                    <span>${alluser!'0'}</span>
                </li>
                <li>
                    <span class="text">投票人次</span>
                    <span>${allvote!'0'}</span>
                </li>
                <li>
                    <span class="text">访问量</span>
                    <span>${allvote*5+1}</span>
                </li>
            </ul>


            <img src="${CONTEXT_PATH}/vote/img/mw_004.jpg"/>
        </div>
        <div class="search">
            <form action="/vote" id="search_form" method="post">
                <div class="search_con">
                    <div class="btn">
                        <input type="submit" name="seachid" id="searchBtn" value="搜索">
                    </div>
                    <div class="text_box">
                        <input type="search" id="searchText" value="" name="keyword"
                               placeholder="搜名字或编号" autocomplete="off">
                    </div>
                </div>
            </form>
        </div>
    </div>
</header>

<section class="content" id="get_info" data-rid="503" data-sort="" data-kw="" data-page="">
    <div class="text_a clearfix" id="sort">
        <a href="/vote" class="active">最新参赛</a>
        <a href="/vote?sort=1">投票排行</a>
    </div>
    <div class="blank20"></div>
    <div id="pageCon" class="match_page masonry" style="padding-bottom: 50px">
        <ul class="list_box masonry clearfix" style="position: relative;">
            <#list userPage.list as user>

                <li class="picCon">
                    <div>
                        <i class="number">${user.id}号</i>
                        <a href="http://www.0713jc.com/vote/personal?babyid=${user.id}" class="img">
                            <img src="http://bbs.0713hah.com/cdn/img/${user.imgurl}.jpg" alt="">
                        </a>
                        <div class="clearfix">
                            <p> ${user.name}<br/>
                                ${user.curscore}票
                            </p>
                            <a href="javascript:void(0);" class="vote" data-babyid="${user.id}">投票</a>
                        </div>
                    </div>
                </li>
            </#list>

        </ul>

    </div>

    <div class="pagination pagination-centered">
        <ul style="overflow: hidden">
            <#if (userPage.pageNumber>1)>
                <li class="active"><a href="/vote?pageNumber=${userPage.pageNumber-1}">上一页</a></li>
            </#if>

            <li class="active" style="float: right"><a href="/vote?pageNumber=${userPage.pageNumber+1}">下一页</a></li>
        </ul>
    </div>
</section>
    <#include "/vote/ad.html"/>
<div class="bot_main">
    <ul>
        <li class="ico_1"><span class="ico"><img
                src="${CONTEXT_PATH}/vote/img/i1.png"/></span><span class="txt">首页</span>
        </li>
        <li class="ico_2"><span class="ico"><img
                src="${CONTEXT_PATH}/vote/img/i3.png"/></span><span class="txt">排名</span>
        </li>
        <li class="ico_3"><span class="ico"><img
                src="${CONTEXT_PATH}/vote/img/i11.png"/></span><span
                class="txt">报名</span></li>
        <li class="ico_4"><span class="ico"><img
                src="${CONTEXT_PATH}/vote/img/i4.png"/></span><span class="txt">关于我们</span>
        </li>
    </ul>
</div>
<link rel="stylesheet" type="text/css"
      href="${CONTEXT_PATH}/css/tipbox.css">
<script src="${CONTEXT_PATH}/js/inittipbox.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#toupiaook").on('click', function () {
            window.location.href = "#";
        });
    });
    $('.ico_1').on('click', function () {
        location.href = "/vote";
    });
    $('.ico_2').on('click', function () {
        location.href = "/vote?sort=1";
    });
    $('.ico_3').on('click', function () {
        location.href = "http://form.mikecrm.com/RfX9KC";
    });
    $('.ico_4').on('click', function () {
        location.href = "http://0713jc.com/admin";
    });
    //提示
    $(".vote").click(function () {
        var id = "mb"+$(this).data('babyid');
        var text = "长按二维码，在<a href='http://mp.weixin.qq.com/s?__biz=MzIxMTM1OTE3Ng==&mid=100000025&idx=1&sn=22c8d9ac0db4a9a2b7794bdf7f90d659#rd'>红安人</a>上<br>回复<b>'"+id+"'</b>帮TA投票";
        new TipBox({type: 'tip', str: text, clickDomCancel: true, setTime: 10000500});
    });
</script>



</body>
</html>